package secondkill.vo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

/**
 * 公共返回对象枚举
 * @Auther  丁子川
 * @create 2022/1/13 13:39
 */
@Getter
@ToString
@AllArgsConstructor
public enum RespBeanEnum {
    //通用
    SUCCESS(200,"SUCCESS"),
    ERROR(500,"ERROR"),
    //登录模块
    LOGIN_ERROR(600,"MOBILE OR PASSWORD ERROR"),
    MOBILE_ERROR(601,"MOBILE FORMAT ERROR"),
    BIND_ERROR(602,"PARAMETER CHECK ERROR"),
    MOBILE_NOT_EXIST(603, "MOBILE NOT EXIST"),
    SESSION_ERROR(604, "SESSION ERROR"),
    //秒杀模块
    EMPTY_STOCK(701,"UNDER STOCK"),
    LIMITED_ERROR(702,"LIMITED PURCHASE OF 1 PIECES"),
    ACCESS_LIMIT_REACHED(703, "VISIT TOO FREQUENTLY"),
    ERROR_CAPTCHA(704, "ERROR CAPTCHA"),
    REPEAT_ERROR(705, "REPEAT ERROR"),
    REQUEST_ILLEGAL(706, "REQUEST ILLEGAL"),
    UPDATE_FAIL(707, "UPDATE FAIL"),
    //订单模块
    ORDER_NOT_EXIST(801, "ORDER NOT EXIST")
    ;
    private final Integer code;
    private final String message;
}
